package pers.zb.cloud.service.user.service.impl;

import org.springframework.stereotype.Service;
import pers.zb.cloud.service.user.entity.GoodsInfo;
import pers.zb.cloud.service.user.service.GoodsService;

import java.math.BigDecimal;
import java.util.Date;

@Service("goodsServiceImpl")
public class GoodsServiceImpl implements GoodsService {

    @Override
    public GoodsInfo getGoodsInfoByName() throws Exception {
        GoodsInfo goodsInfo = new GoodsInfo();
        goodsInfo.setId(1000L);
        goodsInfo.setName("测试商品");
        goodsInfo.setPrice(new BigDecimal(88.00));
        goodsInfo.setCreateTime(new Date());
        goodsInfo.setUpdateTime(new Date());
        return goodsInfo;
    }
}
